package com.eliteams.quick4j.app.dao;

import com.eliteams.quick4j.app.model.LogInfo;
import com.eliteams.quick4j.app.model.LogInfoExample;
import com.eliteams.quick4j.app.model.LogUUid;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface LogInfoMapper {
    long countByExample(LogInfoExample example);

    int deleteByExample(LogInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LogInfo record);

    int insertSelective(LogInfo record);

    List<LogInfo> selectByExample(LogInfoExample example);

    LogInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LogInfo record, @Param("example") LogInfoExample example);

    int updateByExample(@Param("record") LogInfo record, @Param("example") LogInfoExample example);

    int updateByPrimaryKeySelective(LogInfo record);

    int updateByPrimaryKey(LogInfo record);
    
    //查询任务 id
	List<LogInfo> selectByTimeSlot(@Param("startDate")Date startDate, @Param("endDate")Date endDate);
	
	//查任务对应的总数量
	int selectSumCount(Integer loguuidId);
	
	//查询任务对应的新数据
	int selectByNewData(LogInfo logInfo);
	
	//查询任务的状态
	String selectStatus(LogInfo logInfo);
}